package array;

// 方法返回数组
  
public class Test2 {
    public static void main(String args[]) { 
        int arr[] = m1(); 
          
        for (int i = 0; i < arr.length; i++) 
            System.out.print(arr[i]+" ");
    } 
  
    public static int[] m1() { 
        // 返回数组
        return new int[]{1,2,3};
    } 
}